package cn.ll.po;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Permissions entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "permissions", catalog = "lldb")
public class Permissions implements java.io.Serializable {

	// Fields

	private Integer id;
	private String name;
	private String action;
	private String scope;

	// Constructors

	/** default constructor */
	public Permissions() {
	}

	/** full constructor */
	public Permissions(String name, String action, String scope) {
		this.name = name;
		this.action = action;
		this.scope = scope;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "name", length = 100)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "action", length = 100)
	public String getAction() {
		return this.action;
	}

	public void setAction(String action) {
		this.action = action;
	}

	@Column(name = "scope", length = 100)
	public String getScope() {
		return this.scope;
	}

	public void setScope(String scope) {
		this.scope = scope;
	}

}